//
//  WCButton.h
//  WC
//
//  Created by 杨鑫 on 15/4/24.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, WCButtonType){
    WCButtonTypeSave = 0,
    WCButtonTypeAdd,
    WCButtonTypeList,
    WCButtonTypeComment,
    WCButtonTypePatient
};

@interface WCButton : UIButton

@property (nonatomic) CGRect imageFrame;
@property (nonatomic) CGRect titleFrame;

@property (strong, nonatomic) UIColor *bg;
@property (strong, nonatomic) UIColor *downBg;

/**
 *  只有文字的按钮
 *
 *  @param title NSString
 *  @param frame CGRect
 *
 *  @return WCButton
 */
+ (id)txtButton:(NSString *)title frame:(CGRect)frame;

/**
 *  通用的返回按钮
 *
 *  @return WCButton
 */
+ (id)backButton;

/**
 *  通用的关闭模态视图按钮
 *
 *  @return WCButton
 */
+ (id)closeButton;

/**
 *  导航栏右边的按钮
 *
 *  @param buttonType WCButtonType
 *
 *  @return WCButton
 */
+ (id)wcButtonWithType:(WCButtonType)buttonType;

/**
 *  设置按钮文字颜色,在正常状态下。
 *
 *  @param color UIColor
 */
- (void)setTitleColor:(UIColor *)color;

@end
